/**
 * 子页面跳转增加新窗口
 * @param options
 */
var addNewTabs = function (options) {
    var url = window.location.protocol + '//' + window.location.host;
    options.url = url + options.url;
    id = "tab_" + options.id;
    //创建新TAB的title
    title = '<li role="presentation" id="tab_' + id + '"><a href="#' + id + '" aria-controls="' + id + '" role="tab" data-toggle="tab">' + options.title;
    //是否允许关闭
    if (options.close) {
        title += ' <i class="glyphicon glyphicon-remove" tabclose="' + id + '"></i>';
    }
    title += '</a></li>';

    content = '<div role="tabpanel" class="tab-pane" id="' + id + '"><div class="breadcrumbs" id="breadcrumbs' + options.id + '">' +
        '<ul class="breadcrumb"><li><i class="ace-icon fa fa-home home-icon"></i><a id="1stBreadcrumb" href="javascript:void(0)">' + options.stBreadcrumb + '</a></li>' +
        '<li id="2ndBreadcrumb" class="active">' + options.title + '</li></ul></div><iframe src="' + options.url + '" id="mainFrame' + options.id + '" name="mainFrame' + options.id + '" width="100%" height="1200" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe></div>';

    $('.nav-tabs', parent.document).append(title);
    $('.tab-content', parent.document).append(content);
    //激活TAB
    $(".main-content .active", parent.document).removeClass("active");
    $(".nav-list li", parent.document).removeClass('active');
    $("#tab_" + id, parent.document).addClass('active');
    $("#" + id,parent.document).addClass("active");
}